<template>
    <div class="box">
        <header>
            <van-nav-bar left-arrow title="我的钱包" right-text="去绑定" @click-left="fant" @click-right="bang"> </van-nav-bar>
        </header>
        <main>
            <div>
                <div class="walletcard">
                    <div class="cardTitle">
                        <p>我的H币</p>
                    </div>
                    <div class="cardnumber">
                        <p>29870</p>
                    </div>
                    <div class="cardinfor">
                        <span>满2000时可提现</span>
                    </div>
                    <div class="cardButton" @click="cardButton">
                        <button>提现</button>
                    </div>
                </div>
            <div class="Monetary">
                <div class="Monetary_list">
                   <div class="list_left">
                     
                        <p>问诊咨询</p>
                        <span>2016.11.10</span>
                   
                   </div>
                    <div class="list_right">
                        <p>
                            <span>+500H币</span>
                        </p>
                    </div>
                </div>

                <div class="Monetary_list">
                   <div class="list_left">
                        <p>病圈建议被采纳</p>
                        <span>2016.11.10</span>
                    </div>
                    <div class="list_right">
                        <p>
                            <span>+100H币</span>
                        </p>
                    </div>
                </div>
                

                <div class="Monetary_list">
                   <div class="list_left">
                        <p>病圈建议被采纳</p>
                        <span>2016.11.10</span>
                    </div>
                    <div class="list_right">
                        <p>
                            <span>+100H币</span>
                        </p>
                    </div>
                </div>

                <div class="Monetary_list">
                   <div class="list_left">
                        <p>病圈建议被采纳</p>
                        <span>2016.11.10</span>
                    </div>
                    <div class="list_right">
                        <p>
                            <span>+100H币</span>
                        </p>
                    </div>
                </div>
            </div>
            </div>
        </main>
    </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const fant = () => {
  router.go(-1);
};

const bang=()=>
{
    // 跳转到绑定页面
    router.push('/binding')
}

const cardButton=()=>
{
    router.push('/Cash')
}

</script>

<style scoped>

.box
{
    width: 100%;
    height: 100%;
}

.walletcard
{
    width: 100%;
    height: 220px;
    /* margin-left: 20px; */
    border-radius: 10px;
    position: relative;
    margin-left: 30px;
    background: url('../../../assets/images/my_wallet_bg.png') no-repeat 0 0 /100% 100%;
}

.cardTitle
{
    color: #fff;
    font-size: 18px;
}

.cardTitle p
{
    margin-left: 20px;
    padding-top: 20px;
}

.cardnumber
{
    color: #fff;
    margin-top: 30px;
}

.cardnumber p
{
    margin-left: 20px;
    font-size: 40px;
}

.cardinfor
{
    width: 80%;
    height: 30px;
    color: #fff;
    margin-top: 20px;
}

.cardinfor span
{
    margin-left: 20px;
    font-size: 10px;
}

.cardButton
{
    width: 70px;
    height: 30px;
    position: absolute;
    right: 10px;
    bottom: 30px;
}

.cardButton button
{
    width: 60px;
    height: 30px;
    border-radius: 10px;
    border: none;
    color: rgb(45, 134, 211);
}

.Monetary
{
    width: 100%;
    height: 300px;
    margin-top: 10px;
    margin-left: 30px;
}

.Monetary_list
{
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.list_left
{
    width: 50%;
    height: 50px;
    
}



</style>